<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>商户信息变更申请审核</title>

<meta http-equiv="pragma"  content="no-cache">
<meta http-equiv="cache-control"  content="no-cache">
<meta http-equiv="expires"  content="0">
<meta http-equiv="keywords"  content="keyword1,keyword2,keyword3">
<meta http-equiv="description"  content="This is my page">
<link href="<s:url value="/css/a.css"/>"  type="text/css"rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>"  type="text/css"rel="stylesheet" />
<link rel="stylesheet"  href="<s:url value="/css/common.css"/>"/>
<script type="text/javascript" src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript" src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>

<script type="text/javascript">

	$(document).ready(function() {
			
			$("#check").click(
						function() {
							var dd = $("input[name=multi_sel]:checked");
							if(dd.length != 1){
								alert("只能选择一个商户进行设置！");
								return false;
							}
							var type=$("#merinfoChangeTyep").find('option:selected').val();
							var id = dd.val();
							if(dd.length == 0){
								alert("请选择商户");
								return false;
							}else{
							
							    $("#queryUserForm").attr("action","<%=basePath%>/merinfoChangeCheck/check.ct?merinfo.id="+id);
							    $("#queryUserForm").submit();
							    return false;
			
							
							}
							
						});
				 	$("#query").click(function() {
					    var type=$("#merinfoChangeTyep").find('option:selected').text();
					    $("#editMer").val(type);
					});	
	
				 	
			});
	function isDetail(str){
		$("#queryUserForm").attr("action","<%=basePath%>/merinfoChangeCheck/queryMerinfoCheck.ct?merinfo.id="+str);
		$("#queryUserForm").submit();
	}
     
	
</script>



</head>

<body>
		<s:form id="queryUserForm" action="/merinfoChangeCheck/queryMerinfoCheck.ct" method="post" theme="simple">
     <table class="tb">
 
        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
        </tr>

        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h3">商户信息变更申请审核</div></td>
        </tr>
      
			<tr class="tb-line"> 
			
			
			<td align="right" class="tb-td">
            	 <div class="tb-h4">所属机构：</div>
            </td>
			<td class="tb-td">
			<label class="tb-input-normal">
				<s:if test="#session.session_merchant.roleType==\"00\"||#session.session_merchant.roleType==\"01\"">
								<s:select cssClass="queryWidth" name="searchCondition.orgCode"
									list="#request.orgList" listKey="InsIdCd" listValue="InsName"
									headerKey="99" headerValue="--请选择--" />
							</s:if> <s:else>
								<s:select cssClass="queryWidth" name="searchCondition.orgCode"
									list="#request.orgList" listKey="InsIdCd" listValue="InsName" />
	
							</s:else>
			</label>
			 </td>
			 <td align="right" width="15%">商户信息变更类型：</td>
					<td class="tb-td" >
					
						<s:select id="merinfoChangeTyep" name="searchCondition.dealCode" list="#{'C1':'申请变更基本信息','C2':'申请变更结算信息','C3':'商户增机申请','C4':'申请变更T1手续费','C5':'申请变更T0手续费','C6':'商户申请T1开通','C7':'商户申请T0开通','C8':'终止合同申请','10':'商户申请银联扫码开通','11':'商户申请支付宝/微信扫码开通','12':'商户申请预授权开通'}"  headerKey="99" headerValue="--请选择--" cssClass="queryWidth" /> 
					</td>
            </tr>
               
               
          <tr class="tb-line">
            
             <td align="right" class="tb-td">
                <div class="tb-h4">商户号：</div>
             </td>
             <td class="tb-td">
                <label class="tb-input-normal "> 
                   <s:textfield  name="searchCondition.merchantNo" cssClass="queryWidth" />
                </label>
            </td>
            
            <td align="right" class="tb-td">
                <div class="tb-h4">证件号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                <s:textfield id="cardNo"  name="searchCondition.cardNo" cssClass="queryWidth" />
                </label>
            </td>
            
		</tr>
		
		
		 <tr class="tb-line">
					
			<td align="right" class="tb-td">
                <div class="tb-h4">商户名称：</div>
            </td>
             <td class="tb-td">
                <label class="tb-input-normal">
		        <s:textfield id="accountNo" name="searchCondition.merchantName" cssClass="queryWidth" />    
		        </label>
            </td>
			
				
			<td align="right" class="tb-td">
                <div class="tb-h4">营业名称：</div>
            </td>
             <td class="tb-td">
                <label class="tb-input-normal">
                  <s:textfield id="realName" name="searchCondition.merBrName" cssClass="queryWidth" />
                </label>
                </td>
           
		</tr>
		<tr class="tb-line">
            <td class="tb-td line-submit" align="right" colspan="4">
                <label class="tb-input-submit">
                   <s:submit id="query" value="查 询" />
                </label>
                <label class="tb-input-submit">
                   <s:reset value="取 消" />
                </label>
                <label class="tb-input-submit">
                
				
                    <s:if test="#request.searchRsList != null && #request.searchRsList.size>0">        
                	
						<s:submit id="check" value="审 核"/>   
					</s:if>
					
					<s:else>
					 	<s:submit id="check" disabled="true" value="审 核"/>
					</s:else>
					
                </label>
            </td>
        </tr>
            <tr class="tb-line" >
				<td class="tb-td" colspan="6" align="center">
					<div style="color: red;">
						<s:actionmessage />
					</div>
					<div style="color: red;">
						<s:actionerror />
					</div>
				</td>
		   </tr>
  					
</table>
</s:form>
<div class="big-tb">
    <table class="tb" style="width: 120%;">
        <thead>
        <tr class="tb-line">
                <th class="tb-th" colspan="15">商户基本信息列表</th>
            </tr>
				 <s:if test="#request.searchRsList != null && #request.searchRsList.size>0">  
				
 					<tr class="tb-line">
						<td class="tb-td paging"  align="left" colspan="13">
						 <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/merinfoChangeCheck/queryMerinfoCheck.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
				<tr class="tb-line bg-gray">
					<th class="tb-th">选择</th>
					<th class="tb-th">商户号</th>
					<th class="tb-th">变更类型</th>
					<th class="tb-th">商户简称</th>
					<th class="tb-th">商户名称</th>					
					<!-- <th class="tb-th">商户状态</th> -->
					<th class="tb-th">业务联系人</th>
					<th class="tb-th">业务联系人电话</th>
					<th class="tb-th">法人名称</th>
					<th class="tb-th">法人证件号</th>
					<th class="tb-th">商户地址</th>
					<th class="tb-th">申请时间</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="#request.searchRsList" status="stat" id="sh">
					
						<tr class="tb-line">
						<td class="tb-td" align="center">
							<s:checkboxlist name="multi_sel" list="#{#sh.mid:''}" theme="simple" />
						</td>
						
						
						<td class="tb-td">
						<s:property value="#sh.mid"/>
							
						</td>
						
						
						<td class="tb-td">
						<s:if test="#sh.dealCode=='C1'"> 申请变更基本信息    </s:if>
						<s:elseif test="#sh.dealCode=='C2'">申请变更结算信息 </s:elseif>
						<s:elseif test="#sh.dealCode=='C3'"> 商户增机申请</s:elseif>
						<s:elseif test="#sh.dealCode=='C4'">申请变更T1手续费 </s:elseif>
						<s:elseif test="#sh.dealCode=='C5'">申请变更T0手续费 </s:elseif>
						<s:elseif test="#sh.dealCode=='C6'">商户申请T1开通 </s:elseif>
						<s:elseif test="#sh.dealCode=='C7'">商户申请T0开通 </s:elseif>
						<s:elseif test="#sh.dealCode=='C8'">终止合同申请 </s:elseif>
						<s:elseif test="#sh.dealCode=='C9'">变更商户等级 </s:elseif>
						<s:elseif test="#sh.dealCode=='10'">商户申请银联扫码支付开通 </s:elseif>
						<s:elseif test="#sh.dealCode=='11'">商户申请支付宝/微信扫码支付开通 </s:elseif>
                        <s:elseif test="#sh.dealCode=='12'">商户申请预授权开通 </s:elseif>
							<%-- <s:property value="#sh.dealCode" /> --%>
						
						<td class="tb-td">
							<s:property value="#sh.nameBusi" />
						</td>
						<td class="tb-td">
							<s:property value="#sh.merName" />
						</td>	
						
						<%-- <td class="tb-td">
							<s:property value="#sh.status" />
						</td> --%>
						<td class="tb-td">
							<s:property value="#sh.contactName" />
						</td>
						<td class="tb-td">
							<s:property value="#sh.contactPhoneno" />
						</td>
						<td class="tb-td">
							<s:property value="#sh.certif" />
						</td>
						<td class="tb-td">
							<s:property value="#sh.certifNo" />
						</td>
						
						<td class="tb-td">
							<s:property value="#sh.regAddr" />
						</td>
						<td class="tb-td">
							<s:property value="#sh.dtCreateTime" />
						</td>
						
					</tr>
		
						</s:iterator>
				</tbody>
			</table>
	</div>  
	
	<s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>